package com.eims.ball.info.fragment;



import com.eims.ball.info.adapter.FanxiZhenRongGuesShoushangAdapter;
import com.eims.ball.info.adapter.FanxiZhenRongGuesShowAdapter;
import com.eims.sls_app.view.MyListView2;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import bls.juejin.cn.R;



public class FenxiHenrongGuestemFragment extends Fragment implements OnClickListener {
	private Activity activity;
	
	private  MyListView2 listviewZhenRongGuesShow;
	private  FanxiZhenRongGuesShowAdapter fenxiZhenRongGuesShowAdapter;

	
	private  MyListView2 listviewZhenRongGuesShoushang ;
	private  FanxiZhenRongGuesShoushangAdapter fenxiZhenRongGuesShoushangAdapter;
	

	private String weakPlayerB, allPlayerB;

	public FenxiHenrongGuestemFragment() {
		super();
	}


	public static FenxiHenrongGuestemFragment newInstance(String weakPlayerB, String allPlayerB) {
		FenxiHenrongGuestemFragment newFragment = new FenxiHenrongGuestemFragment();
		Bundle bundle = new Bundle();
		bundle.putString("weakPlayerB", weakPlayerB);
		bundle.putString("allPlayerB", allPlayerB);
		newFragment.setArguments(bundle);
		return newFragment;

	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.fenxi_zhengrong_team_info, container, false);
		activity = getActivity();
		Bundle args = getArguments();
		if (args != null) {
			this.allPlayerB = args.getString("weakPlayerB");
			this.weakPlayerB= args.getString("allPlayerB");
		}
		init(view);
		return view;
	}

	private void init(View view) {
		// TODO Auto-generated method stub
		listviewZhenRongGuesShow=(MyListView2) view.findViewById(R.id.listview_chuzhan_people);
		fenxiZhenRongGuesShowAdapter=new FanxiZhenRongGuesShowAdapter(activity,allPlayerB);
		listviewZhenRongGuesShow.setAdapter(fenxiZhenRongGuesShowAdapter);
		
		listviewZhenRongGuesShoushang=(MyListView2) view.findViewById(R.id.listview_shangyuan_people);
		fenxiZhenRongGuesShoushangAdapter=new FanxiZhenRongGuesShoushangAdapter(activity,weakPlayerB);
		listviewZhenRongGuesShoushang.setAdapter(fenxiZhenRongGuesShoushangAdapter);
	

	}

	

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
//		case R.id.btn_pay_money:
//		
//			break;

		default:
			break;
		}
	}

}
